home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / printdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-11-22  |  2.0 KB  |  86 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PRINTDIALOG_H
  8. #define PRINTDIALOG_H
  9.  
  10. #include "scribusapi.h"
  11. #include "scribusstructs.h"
  12.  
  13. #include <QDialog>
  14. #include "ui_printdialogbase.h"
  15.  
  16. class PrefsContext;
  17. class ScribusDoc;
  18. class CupsOptions;
  19.  
  20. struct PrintOptions;
  21.  
  22. class SCRIBUS_API PrintDialog : public QDialog, Ui::PrintDialogBase
  23. {
  24.     Q_OBJECT
  25.  
  26. public:
  27.     PrintDialog( QWidget* parent, ScribusDoc* doc, const PrintOptions& printOptions, bool gcr, QStringList spots);
  28.     ~PrintDialog();
  29.     QString printerName();
  30.     QString outputFileName();
  31.     bool outputToFile();
  32.     int numCopies();
  33.     bool outputSeparations();
  34.     QString separationName();
  35.     QStringList allSeparations();
  36.     QString PrinterOpts;
  37.     bool color();
  38.     bool mirrorHorizontal();
  39.     bool mirrorVertical();
  40.     bool doGCR();
  41.     bool doClip();
  42.     PrintEngine printEngine();
  43.     bool doDev();
  44.     bool doSpot();
  45.     bool ICCinUse();
  46.     bool doPrintAll();
  47.     bool doPrintCurrentPage();
  48.     QString getPageString();
  49.     QByteArray DevMode;
  50.  
  51. public slots:
  52.     void setMinMax(int min, int max, int cur);
  53.  
  54. signals:
  55.     void doPreview();
  56.  
  57. protected slots:
  58.     void doDocBleeds();
  59.     void createPageNumberRange();
  60.     void SetOptions();
  61.     void SelEngine(const QString& eng);
  62.     void SelPrinter(const QString& prn);
  63.     void SelRange(bool e);
  64.     void SelMode(int e);
  65.     void SelFile();
  66.     void SelComm();
  67.     void okButtonClicked();
  68.     void previewButtonClicked();
  69.  
  70. protected:
  71.     ScribusDoc*  m_doc;
  72.     PrintEngineMap printEngineMap;
  73.     PrefsContext* prefs;
  74.     void setStoredValues(const QString& fileName, bool gcr);
  75.     CupsOptions *cdia;
  76.     int    unit;
  77.     double unitRatio;
  78.     void   getOptions();
  79.     void   getDefaultPrintOptions(PrintOptions& options, bool gcr);
  80.     void   storeValues();
  81.     void   refreshPrintEngineBox();
  82.     void   setPrintEngine(PrintEngine engine);
  83. };
  84.  
  85. #endif // PRINTDIALOG_H
  86.